package com.github.common.extend.demo.config.filetask;

/**
 * 文件任务状态
 * @see FileTask#getStatus()
 * @author wangjj7
 * @date 2023/8/7
 * @description
 */
public enum FileTaskStatus {

    UNDONE(0 ,"未完成"),

    SUCCESS(1 ,"成功"),

    FAIL(2 ,"失败"),

    SHARE(4 ,"共享"),//直接复用其他任务的执行结果
    ;

    private final int code;

    private final String desc;

    FileTaskStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
